uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
cms
/
src
/
fieldlayoutelements
/
Heading.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\fieldlayoutelements; use Craft; use craft\base\ElementInterface; use craft\helpers\Cp; use craft\helpers\Html; /** * Heading represents an `<h2>` UI element that can be included in field layouts. * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.5.0 */ class Heading extends BaseUiElement { /** * @var string The heading text */ public string $heading = ''; /** * @inheritdoc */ protected function selectorLabel(): string { return $this->heading ?: Craft::t('app', 'Heading'); } /** * @inheritdoc */ protected function selectorIcon(): ?string { return '@appicons/hash.svg'; } /** * @inheritdoc */ protected function settingsHtml(): ?string { return Cp::textFieldHtml([ 'label' => Craft::t('app', 'Heading'), 'id' => 'heading', 'name' => 'heading', 'value' => $this->heading, ]); } /** * @inheritdoc */ public function formHtml(?ElementInterface $element = null, bool $static = false): ?string { return Html::tag('h2', Html::encode(Craft::t('site', $this->heading))); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/cms/src/fieldlayoutelements/Heading.php