RestResourceConfig::getFormats

public RestResourceConfig::getFormats($method) Retrieves a list of supported response formats. Parameters string $method: The request method e.g GET or POST. Return value string[] A list of supported format IDs. Overrides RestResourceConfigInterface::getFormats File core/modules/rest/src/Entity/RestResourceConfig.php, line 172 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code public function getFormats($method) { swi

system_entity_type_build

system_entity_type_build(array &$entity_types) Implements hook_entity_type_build(). File core/modules/system/system.module, line 1405 Configuration system that lets administrators modify the workings of the site. Code function system_entity_type_build(array &$entity_types) { /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */ $entity_types['date_format'] ->setFormClass('add', 'Drupal\system\Form\DateFormatAddForm') ->setFormClass('edit', 'Drupal\system\

FieldWidget

Defines a FieldWidget annotation object. Widgets handle how fields are displayed in edit forms. Additional annotation keys for widgets can be defined in hook_field_widget_info_alter(). Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\Core\Field\Annotation\FieldWidget See also \Drupal\Core\Field\WidgetPluginManager \Drupal\Core\Field\WidgetInterface Related topics Annotations Annotations for class discovery and metadata description. Field Widge

SelectExtender::condition

public SelectExtender::condition($field, $value = NULL, $operator = '=') Helper function: builds the most common conditional clauses. This method can take a variable number of parameters. If called with two parameters, they are taken as $field and $value with $operator having a value of =. Do not use this method to test for NULL values. Instead, use QueryConditionInterface::isNull() or QueryConditionInterface::isNotNull(). Drupal considers LIKE case insensitive and the following is often used t

ConfigFactory::loadMultiple

public ConfigFactory::loadMultiple(array $names) Returns a list of configuration objects for the given names. This will pre-load all requested configuration objects does not create new configuration objects. This method always return immutable objects. ConfigFactoryInterface::getEditable() should be used to retrieve mutable configuration objects, one by one. Parameters array $names: List of names of configuration objects. Return value \Drupal\Core\Config\ImmutableConfig[] List of successfully

BookOutline::childrenLinks

public BookOutline::childrenLinks(array $book_link) Formats the book links for the child pages of the current page. Parameters array $book_link: A fully loaded book link that is part of the book hierarchy. Return value array HTML for the links to the child pages of the current page. File core/modules/book/src/BookOutline.php, line 105 Class BookOutline Provides handling to render the book outline. Namespace Drupal\book Code public function childrenLinks(array $book_link) { $flat =

FieldConfigBase::getItemDefinition

public FieldConfigBase::getItemDefinition() Gets the data definition of an item of the list. Return value \Drupal\Core\TypedData\DataDefinitionInterface A data definition describing the list items. Overrides ListDataDefinitionInterface::getItemDefinition File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 514 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function getItemDefinition() { if (!isset($this->itemDefin

CacheTagsChecksumInterface::reset

public CacheTagsChecksumInterface::reset() Reset statically cached tags. This is only used by tests. File core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php, line 56 Class CacheTagsChecksumInterface Provides checksums for cache tag invalidations. Namespace Drupal\Core\Cache Code public function reset();

FieldConfigBase::getName

public FieldConfigBase::getName() Returns the machine name of the field. This defines how the field data is accessed from the entity. For example, if the field name is "foo", then $entity->foo returns its data. Return value string The field name. Overrides FieldDefinitionInterface::getName File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 193 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function getName() { r

FieldDefinitionListener::$cacheBackend

Cache backend instance. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Field/FieldDefinitionListener.php, line 34 Class FieldDefinitionListener Reacts to field definition CRUD on behalf of the Entity system. Namespace Drupal\Core\Field Code protected $cacheBackend;