ContentEntityConfirmFormBase::buildForm

public ContentEntityConfirmFormBase::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 EntityForm::buildForm File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 52 Class ContentEntityConfirmFormBase Provides a generic base class for an

ContentEntityConfirmFormBase::actions

protected ContentEntityConfirmFormBase::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 79 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity C

ContentEntityConfirmFormBase

Provides a generic base class for an entity-based confirmation form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConf

ContentEntityBase::__unset

public ContentEntityBase::__unset($name) Implements the magic method for unset(). File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 967 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function __unset($name) { // Unsetting a field means emptying it. if ($this->hasField($name)) { $this->get($name)->setValue(array()); } // For non-field properties, unset the internal va

ContentEntityBase::__sleep

public ContentEntityBase::__sleep() Overrides Entity::__sleep File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 404 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function __sleep() { // Get the values of instantiated field objects, only serialize the values. foreach ($this->fields as $name => $fields) { foreach ($fields as $langcode => $field) { $this->values[$

ContentEntityBase::__set

public ContentEntityBase::__set($name, $value) Implements the magic method for setting object properties. Uses default language always. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 919 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function __set($name, $value) { // Inline getFieldDefinition() to speed things up. if (!isset($this->fieldDefinitions)) { $this->getFieldDe

ContentEntityBase::__isset

public ContentEntityBase::__isset($name) Implements the magic method for isset(). File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 953 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function __isset($name) { // "Official" Field API fields are always set. if ($this->hasField($name)) { return TRUE; } // For non-field properties, check the internal values. else { retur

ContentEntityBase::__get

public &ContentEntityBase::__get($name) Implements the magic method for getting object properties. @todo: A lot of code still uses non-fields (e.g. $entity->content in view builders) by reference. Clean that up. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 892 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function &__get($name) { // If this is an entity field, handle i

ContentEntityBase::__construct

public ContentEntityBase::__construct(array $values, $entity_type, $bundle = FALSE, $translations = array()) Constructs an Entity object. Parameters array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified. string $entity_type: The type of the entity to create. Overrides Entity::__construct File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 168 Class ContentEntityBase Implements Entity Field API specific

ContentEntityBase::__clone

public ContentEntityBase::__clone() Magic method: Implements a deep clone. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 1007 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function __clone() { // Avoid deep-cloning when we are initializing a translation object, since // it will represent the same entity, only with a different active language. if (!$this->translationInitiali