EditDetails::buildForm

public EditDetails::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/views_ui/src/Form/Ajax/EditDetails.php, line 30 Class EditDetails Provides a form for editing the details of a View. Namespace Drupal\views_

CacheableMetadata::getCacheMaxAge

public CacheableMetadata::getCacheMaxAge() The maximum age for which this object may be cached. Return value int The maximum time in seconds that this object may be cached. Overrides RefinableCacheableDependencyTrait::getCacheMaxAge File core/lib/Drupal/Core/Cache/CacheableMetadata.php, line 57 Class CacheableMetadata Defines a generic class for passing cacheability metadata. Namespace Drupal\Core\Cache Code public function getCacheMaxAge() { return $this->cacheMaxAge; }

Node::setCreatedTime

public Node::setCreatedTime($timestamp) Sets the node creation timestamp. Parameters int $timestamp: The node creation timestamp. Return value \Drupal\node\NodeInterface The called node entity. Overrides NodeInterface::setCreatedTime File core/modules/node/src/Entity/Node.php, line 211 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setCreatedTime($timestamp) { $this->set('created', $timestamp); return $this; }

ActionFormBase::create

public static ActionFormBase::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service c

ActionAdminManageForm::buildForm

public ActionAdminManageForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/action/src/Form/ActionAdminManageForm.php, line 52 Class ActionAdminManageForm Provides a configuration form for configurable actions

hook_field_storage_config_update_forbid

hook_field_storage_config_update_forbid(\Drupal\field\FieldStorageConfigInterface $field_storage, \Drupal\field\FieldStorageConfigInterface $prior_field_storage) Forbid a field storage update from occurring. Any module may forbid any update for any reason. For example, the field's storage module might forbid an update if it would change the storage schema while data for the field exists. A field type module might forbid an update if it would change existing data's semantics, or if there are ext

EntityManager::getLastInstalledFieldStorageDefinitions

public EntityManager::getLastInstalledFieldStorageDefinitions($entity_type_id) Overrides EntityManagerInterface::getLastInstalledFieldStorageDefinitions Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 475 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function getLastInstalledFieldStorageDefinitions($entity_type_id) { return $t

Drupal::config

public static Drupal::config($name) Retrieves a configuration object. This is the main entry point to the configuration API. Calling \Drupal::config('book.admin') will return a configuration object in which the book module can store its administrative settings. Parameters string $name: The name of the configuration object to retrieve. The name corresponds to a configuration file. For \Drupal::config('book.admin') , the config object returned will contain the contents of book.admin configura

PlaceholderingRenderCache

Adds automatic placeholdering to the RenderCache. This automatic placeholdering is performed to ensure the containing elements and overarching response are as cacheable as possible. Elements whose subtree bubble either max-age=0 or high-cardinality cache contexts (such as 'user' and 'session') are considered poorly cacheable. Automatic placeholdering is performed only on elements whose subtree was generated using a #lazy_builder callback and whose bubbled cacheability meets the auto-placeholder

ConfigRenameEvent::__construct

public ConfigRenameEvent::__construct(Config $config, $old_name) Constructs the config rename event. Parameters \Drupal\Core\Config\Config $config: The configuration that has been renamed. string $old_name: The old configuration object name. Overrides ConfigCrudEvent::__construct File core/lib/Drupal/Core/Config/ConfigRenameEvent.php, line 25 Class ConfigRenameEvent Configuration event fired when renaming a configuration object. Namespace Drupal\Core\Config Code public function __cons