FieldItemInterface::storageSettingsFromConfigData

public static FieldItemInterface::storageSettingsFromConfigData(array $settings) Returns a settings array in the field type's canonical representation. This function does the inverse of static::storageSettingsToConfigData(). It's called when loading a field's settings from a configuration object. Parameters array $settings: The field's settings, as it is stored within a configuration object. Return value array The settings, in the representation expected by the field type and code that intera

FieldConfigInterface::addPropertyConstraints

public FieldConfigInterface::addPropertyConstraints($name, array $constraints) Adds constraints for a given field item property. Adds a constraint to a property of a field item. e.g. // Limit the field item's value property to the range 0 through 10. // e.g. $node->field_how_many->value. $field->addPropertyConstraints('value', [ 'Range' => [ 'min' => 0, 'max' => 10, ] ]); If you want to add a validation constraint that applies to the \Drupal\Core\Field\FieldItemL

StorageComparer::$targetStorages

The target storages keyed by collection. Type: \Drupal\Core\Config\StorageInterface[] File core/lib/Drupal/Core/Config/StorageComparer.php, line 41 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code protected $targetStorages;

Xss::split

protected static Xss::split($string, $html_tags, $class) Processes an HTML tag. Parameters string $string: The HTML tag to process. array $html_tags: An array where the keys are the allowed tags and the values are not used. string $class: The called class. This method is called from an anonymous function which breaks late static binding. See https://bugs.php.net/bug.php?id=66622 for more information. Return value string If the element isn't allowed, an empty string. Otherwise, the cleaned up

Drupal::VERSION

The current system version. File core/lib/Drupal.php, line 84 Contains \Drupal. Class Drupal Static Service Container wrapper. Code const VERSION = '8.2.2-dev';

EntityResolverManager

Sets the entity route parameter converter options automatically. If controllers of routes with route parameters, type-hint the parameters with an entity interface, upcasting is done automatically. Hierarchy class \Drupal\Core\Entity\EntityResolverManager File core/lib/Drupal/Core/Entity/EntityResolverManager.php, line 14 Namespace Drupal\Core\Entity Members Name Modifiers Type Description EntityResolverManager::$classResolver protected property The class resolver. Enti

SessionConfigurationInterface

Defines an interface for session configuration generators. Hierarchy interface \Drupal\Core\Session\SessionConfigurationInterface File core/lib/Drupal/Core/Session/SessionConfigurationInterface.php, line 10 Namespace Drupal\Core\Session Members Name Modifiers Type Description SessionConfigurationInterface::getOptions public function Returns a list of options suitable for passing to the session storage. SessionConfigurationInterface::hasSession public function Det

SiteConfigureForm::validateForm

public SiteConfigureForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php, line 250 Class SiteConfigureForm Provides the site configuration form. Namespace Drupal\Core\Installer\Form Code p

FieldItemBase::getSettings

protected FieldItemBase::getSettings() Returns the array of field settings. Return value array The array of settings. File core/lib/Drupal/Core/Field/FieldItemBase.php, line 84 Class FieldItemBase An entity field item. Namespace Drupal\Core\Field Code protected function getSettings() { return $this->getFieldDefinition()->getSettings(); }

ContextualLinks::preRenderLinks

public static ContextualLinks::preRenderLinks(array $element) Pre-render callback: Builds a renderable array for contextual links. Parameters array $element: A renderable array containing a #contextual_links property, which is a keyed array. Each key is the name of the group of contextual links to render (based on the 'group' key in the *.links.contextual.yml files for all enabled modules). The value contains an associative array containing the following keys: route_parameters: The route para