EntityDisplayFormBase::copyFormValuesToEntity

protected EntityDisplayFormBase::copyFormValuesToEntity(EntityInterface $entity, array $form, FormStateInterface $form_state) Copies top-level form values to entity properties This should not change existing entity properties that are not being edited by this form. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the current form should operate upon. array $form: A nested array of form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current

Form generation

Describes how to generate and manipulate forms and process form submissions. Drupal provides a Form API in order to achieve consistency in its form processing and presentation, while simplifying code and reducing the amount of HTML that must be explicitly generated by a module. Creating forms Forms are defined as classes that implement the \Drupal\Core\Form\FormInterface and are built using the \Drupal\Core\Form\FormBuilder class. Drupal provides a couple of utility classes that can be extended

node_query_node_access_alter

node_query_node_access_alter(AlterableInterface $query) Implements hook_query_TAG_alter(). This is the hook_query_alter() for queries tagged with 'node_access'. It adds node access checks for the user account given by the 'account' meta-data (or current user if not provided), for an operation given by the 'op' meta-data (or 'view' if not provided; other possible values are 'update' and 'delete'). Queries tagged with 'node_access' that are not against the {node} table must add the base table as

ResourceResponseInterface::getResponseData

public ResourceResponseInterface::getResponseData() Returns response data that should be serialized. Return value mixed Response data that should be serialized. File core/modules/rest/src/ResourceResponseInterface.php, line 16 Class ResourceResponseInterface Defines a common interface for resource responses. Namespace Drupal\rest Code public function getResponseData();

PrivateKey::set

public PrivateKey::set($key) Sets the private key. Parameters string $key: The private key to set. File core/lib/Drupal/Core/PrivateKey.php, line 51 Class PrivateKey Manages the Drupal private key. Namespace Drupal\Core Code public function set($key) { return $this->state->set('system.private_key', $key); }

SqlContentEntityStorage::getTableMapping

public SqlContentEntityStorage::getTableMapping(array $storage_definitions = NULL) Gets a table mapping for the entity's SQL tables. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface[] $storage_definitions: (optional) An array of field storage definitions to be used to compute the table mapping. Defaults to the ones provided by the entity manager. Return value \Drupal\Core\Entity\Sql\TableMappingInterface A table mapping object for the entity's tables. Overrides SqlEntityStorageIn

DbDumpApplication

Provides a command to dump a database generation script. Hierarchy class \Symfony\Component\Console\Applicationclass \Drupal\Core\Command\DbDumpApplication File core/lib/Drupal/Core/Command/DbDumpApplication.php, line 11 Namespace Drupal\Core\Command Members Name Modifiers Type Description Application::$autoExit private property Application::$catchExceptions private property Application::$commands private property Application::$defaultCommand private

UpdateProcessor::deleteQueueItem

public UpdateProcessor::deleteQueueItem($item) Deletes a finished item from the update fetch queue. Parameters \stdClass $item: The item returned by \Drupal\Core\Queue\QueueInterface::claimItem(). Overrides UpdateProcessorInterface::deleteQueueItem See also \Drupal\Core\Queue\QueueInterface::deleteItem() File core/modules/update/src/UpdateProcessor.php, line 265 Class UpdateProcessor Process project update information. Namespace Drupal\update Code public function deleteQueueItem($ite

ModerationHandlerInterface::enforceRevisionsBundleFormAlter

public ModerationHandlerInterface::enforceRevisionsBundleFormAlter(array &$form, FormStateInterface $form_state, $form_id) Alters bundle forms to enforce revision handling. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $form_id: The form id. See also hook_form_alter() File core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php, line 71

ModerationHandler::createInstance

public static ModerationHandler::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Depende