function RenderElementBase::initializeInternalStorage

Initialize storage.

This will only have an effect the first time it is called, once it has been called, subsequent calls will not have an effect. Only the plugin manager should ever call this method.

@internal

Parameters

array $element: The containing element.

Return value

$this

Overrides ElementInterface::initializeInternalStorage

File

core/lib/Drupal/Core/Render/Element/RenderElementBase.php, line 559

Class

RenderElementBase
Provides a base class for render element plugins.

Namespace

Drupal\Core\Render\Element

Code

public function initializeInternalStorage(array &$element) : static {
  $this->storage =& $element;
  $element['##object'] = $this;
  $this->setType();
  return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.