FieldConfigInterface::setConstraints

public FieldConfigInterface::setConstraints(array $constraints) Sets the array of validation constraints for the FieldItemList. NOTE: This will overwrite any previously set constraints. In most cases FieldConfigInterface::addConstraint() should be used instead. Note that constraints added via this method are not stored in configuration and as such need to be added at runtime using hook_entity_bundle_field_info_alter(). Parameters array $constraints: The array of constraints. See \Drupal\Core\T

LocaleTranslation::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/modules/locale/src/LocaleTranslation.php, line 78 Class LocaleTranslation String translator using the locale module. Namespace Drupal\locale Code protected $requestStack;

FieldConfigBase::id

public FieldConfigBase::id() Gets the identifier. Return value string|int|null The entity identifier, or NULL if the object does not yet have an identifier. Overrides Entity::id File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 186 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function id() { return $this->entity_type . '.' . $this->bundle . '.' . $this->field_name; }

Url::$options

The URL options. See \Drupal\Core\Url::fromUri() for details on the options. Type: array File core/lib/Drupal/Core/Url.php, line 62 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected $options = array();

RouteBuilder::$controllerResolver

The controller resolver. Type: \Drupal\Core\Controller\ControllerResolverInterface File core/lib/Drupal/Core/Routing/RouteBuilder.php, line 54 Class RouteBuilder Managing class for rebuilding the router table. Namespace Drupal\Core\Routing Code protected $controllerResolver;

Connection::$prefixes

The prefixes used by this database connection. Type: array File core/lib/Drupal/Core/Database/Connection.php, line 120 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $prefixes = array();

BlockInterface::BLOCK_LABEL_VISIBLE

Indicates the block label (title) should be displayed to end users. File core/modules/block/src/BlockInterface.php, line 15 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code const BLOCK_LABEL_VISIBLE = 'visible';

YamlSymfony::encode

public static YamlSymfony::encode($data) Encodes data into the serialization format. Parameters mixed $data: The data to encode. Return value string The encoded data. Overrides SerializationInterface::encode File core/lib/Drupal/Component/Serialization/YamlSymfony.php, line 17 Class YamlSymfony Default serialization for YAML using the Symfony component. Namespace Drupal\Component\Serialization Code public static function encode($data) { try { $yaml = new Dumper(); $yaml->

AddHandler::getForm

public AddHandler::getForm(ViewEntityInterface $view, $display_id, $js, $type = NULL) Creates a new instance of this form. @todo When https://www.drupal.org/node/1843224 is in, this will return \Drupal\Core\Ajax\AjaxResponse instead of the array of AJAX commands. Parameters \Drupal\views\ViewEntityInterface $view: The view being edited. string|null $display_id: The display ID being edited, or NULL to load the first available display. string $js: If this is an AJAX form, it will be the string '

FileStorage::encode

public FileStorage::encode($data) Encodes configuration data into the storage-specific format. This is a publicly accessible static method to allow for alternative usages in data conversion scripts and also tests. Parameters array $data: The configuration data to encode. Return value string The encoded configuration data. Overrides StorageInterface::encode File core/lib/Drupal/Core/Config/FileStorage.php, line 198 Class FileStorage Defines the file storage. Namespace Drupal\Core\Confi