EntityType::$id

The unique identifier of this entity type. Type: string File core/lib/Drupal/Core/Entity/EntityType.php, line 52 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code protected $id;

Fieldset

Provides a render element for a group of form elements. Usage example: $form['author'] = array( '#type' => 'fieldset', '#title' => $this->t('Author'), ); $form['author']['name'] = array( '#type' => 'textfield', '#title' => $this->t('Name'), ); Plugin annotation @RenderElement("fieldset") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializat

FilterFormatFormBase::form

public FilterFormatFormBase::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/filter/src/FilterFormatFormBase.php, line 45 Class FilterFormatFormBase Provides a base form for a filter format. Namespace Drupal\filter Code public function form(array $form, FormStateInterface $form_state) { $format = $t

DatabaseStorage::decode

public DatabaseStorage::decode($raw) Implements Drupal\Core\Config\StorageInterface::decode(). Throws ErrorException The unserialize() call will trigger E_NOTICE if the string cannot be unserialized. Overrides StorageInterface::decode File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 258 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code public function decode($raw) { $data = @unserialize($raw); return is_array($data) ? $data : FALSE; }

BreadcrumbManager::getSortedBuilders

protected BreadcrumbManager::getSortedBuilders() Returns the sorted array of breadcrumb builders. Return value \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface[] An array of breadcrumb builder objects. File core/lib/Drupal/Core/Breadcrumb/BreadcrumbManager.php, line 105 Class BreadcrumbManager Provides a breadcrumb manager. Namespace Drupal\Core\Breadcrumb Code protected function getSortedBuilders() { if (!isset($this->sortedBuilders)) { // Sort the builders according to pr

EntityDisplayFormBase::alterSettingsSummary

abstract protected EntityDisplayFormBase::alterSettingsSummary(array &$summary, PluginSettingsInterface $plugin, FieldDefinitionInterface $field_definition) Alters the widget or formatter settings summary. Parameters array $summary: The widget or formatter settings summary. \Drupal\Core\Field\PluginSettingsInterface $plugin: The widget or formatter. \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition. File core/modules/field_ui/src/Form/EntityDisplayFormBase

Datelist::checkEmptyInputs

protected static Datelist::checkEmptyInputs($input, $parts) Checks the input array for empty values. Input array keys are checked against values in the parts array. Elements not in the parts array are ignored. Returns an array representing elements from the input array that have no value. If no empty values are found, returned array is empty. Parameters array $input: Array of individual inputs to check for value. array $parts: Array to check input against, ignoring elements not in this array.

ConfigEntityMapper::getType

public ConfigEntityMapper::getType() Gets the entity type from this mapper. Return value string File core/modules/config_translation/src/ConfigEntityMapper.php, line 199 Class ConfigEntityMapper Configuration mapper for configuration entities. Namespace Drupal\config_translation Code public function getType() { return $this->entityType; }

contact_post_update_add_message_redirect_field_to_contact_form

contact_post_update_add_message_redirect_field_to_contact_form() Initialize 'message' and 'redirect' field values to 'contact_form' entities. File core/modules/contact/contact.post_update.php, line 18 Post update functions for Contact. Code function contact_post_update_add_message_redirect_field_to_contact_form() { /** @var \Drupal\contact\ContactFormInterface $contact */ foreach (ContactForm::loadMultiple() as $contact) { $contact ->setMessage('Your message has been sent.')

ShortcutInterface

Provides an interface defining a shortcut entity. Hierarchy interface \Drupal\Core\Entity\FieldableEntityInterface; interface \Drupal\Core\Entity\RevisionableInterface; interface \Drupal\Core\TypedData\TranslatableInterfaceinterface \Drupal\Core\Entity\ContentEntityInterface extends \Traversableinterface \Drupal\shortcut\ShortcutInterface File core/modules/shortcut/src/ShortcutInterface.php, line 10 Namespace Drupal\shortcut Members Name Modifiers Type Description Accessible