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.')

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; }

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.

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

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

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; }

Condition::where

public Condition::where($snippet, $args = array()) Adds an arbitrary WHERE clause to the query. Parameters $snippet: A portion of a WHERE clause as a prepared statement. It must use named placeholders, not ? placeholders. $args: An associative array of arguments. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::where File core/lib/Drupal/Core/Database/Query/Condition.php, line 88 Class Condition Generic class for a series of con

BreadcrumbManager::addBuilder

public BreadcrumbManager::addBuilder(BreadcrumbBuilderInterface $builder, $priority) Adds another breadcrumb builder. Parameters \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface $builder: The breadcrumb builder to add. int $priority: Priority of the breadcrumb builder. Overrides ChainBreadcrumbBuilderInterface::addBuilder File core/lib/Drupal/Core/Breadcrumb/BreadcrumbManager.php, line 56 Class BreadcrumbManager Provides a breadcrumb manager. Namespace Drupal\Core\Breadcrumb Code pu

WidgetInterface::formElement

public WidgetInterface::formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) Returns the form for a single field widget. Field widget form elements should be based on the passed-in $element, which contains the base form element properties derived from the field configuration. The BaseWidget methods will set the weight, field name and delta values for each form element. If there are multiple values for this field, the formElement()

editor_image_upload_settings_form

editor_image_upload_settings_form(Editor $editor) Subform constructor to configure the text editor's image upload settings. Each text editor plugin that is configured to offer the ability to insert images and uses EditorImageDialog for that, should use this form to update the text editor's configuration so that EditorImageDialog knows whether it should allow the user to upload images. Parameters \Drupal\editor\Entity\Editor $editor: The text editor entity that is being edited. Return value ar