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

file_unmunge_filename

file_unmunge_filename($filename) Undoes the effect of file_munge_filename(). Parameters $filename: String with the filename to be unmunged. Return value An unmunged filename string. Related topics File interface Common file handling functions. File core/includes/file.inc, line 740 API for handling file uploads and server file management. Code function file_unmunge_filename($filename) { return str_replace('_.', '.', $filename); }

EditorImageDialog::getFormId

public EditorImageDialog::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/editor/src/Form/EditorImageDialog.php, line 50 Class EditorImageDialog Provides an image dialog for text editors. Namespace Drupal\editor\Form Code public function getFormId() { return 'editor_image_dialog'; }

BookAdminEditForm::bookAdminTable

protected BookAdminEditForm::bookAdminTable(NodeInterface $node, array &$form) Builds the table portion of the form for the book administration page. Parameters \Drupal\node\NodeInterface $node: The node of the top-level page in the book. array $form: The form that is being modified, passed by reference. See also self::buildForm() File core/modules/book/src/Form/BookAdminEditForm.php, line 141 Class BookAdminEditForm Provides a form for administering a single book's hierarchy. Name

EntityDisplayFormBase::getOverviewUrl

abstract protected EntityDisplayFormBase::getOverviewUrl($mode) Returns the Url object for a specific entity (form) display edit form. Parameters string $mode: The form or view mode. Return value \Drupal\Core\Url A Url object for the overview route. File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 905 Class EntityDisplayFormBase Base class for EntityDisplay edit forms. Namespace Drupal\field_ui\Form Code abstract protected function getOverviewUrl($mode);

ConfigEntityBase::getThirdPartyProviders

public ConfigEntityBase::getThirdPartyProviders() Gets the list of third parties that store information. Return value array The list of third parties. Overrides ThirdPartySettingsInterface::getThirdPartyProviders File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 573 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function getThirdPartyProviders() { return array_keys($this->third_party_settings); }

PoStreamReader::open

public PoStreamReader::open() Implements Drupal\Component\Gettext\PoStreamInterface::open(). Opens the stream and reads the header. The stream is ready for reading items after. Throws Exception If the URI is not yet set. Overrides PoStreamInterface::open File core/lib/Drupal/Component/Gettext/PoStreamReader.php, line 152 Class PoStreamReader Implements Gettext PO stream reader. Namespace Drupal\Component\Gettext Code public function open() { if (!empty($this->_uri)) { $this-&

RenderCache::createCacheID

protected RenderCache::createCacheID(array &$elements) Creates the cache ID for a renderable element. Creates the cache ID string based on #cache['keys'] + #cache['contexts']. Parameters array &$elements: A renderable array. Return value string The cache ID string, or FALSE if the element may not be cached. File core/lib/Drupal/Core/Render/RenderCache.php, line 298 Class RenderCache Wraps the caching logic for the render caching system. Namespace Drupal\Core\Render Code prote

DataDefinition::$definition

The array holding values for all definition keys. Type: array File core/lib/Drupal/Core/TypedData/DataDefinition.php, line 15 Class DataDefinition A typed data definition class for defining data based on defined data types. Namespace Drupal\Core\TypedData Code protected $definition = array();

Hidden::preRenderHidden

public static Hidden::preRenderHidden($element) Prepares a #type 'hidden' render element for input.html.twig. Parameters array $element: An associative array containing the properties of the element. Properties used: #name, #value, #attributes. Return value array The $element with prepared variables ready for input.html.twig. File core/lib/Drupal/Core/Render/Element/Hidden.php, line 56 Class Hidden Provides a form element for an HTML 'hidden' input element. Namespace Drupal\Core\Rende