PublicStream::getType

public static PublicStream::getType() Returns the type of stream wrapper. Return value int Overrides LocalStream::getType File core/lib/Drupal/Core/StreamWrapper/PublicStream.php, line 21 Class PublicStream Defines a Drupal public (public://) stream wrapper class. Namespace Drupal\Core\StreamWrapper Code public static function getType() { return StreamWrapperInterface::LOCAL_NORMAL; }

RoleForm::save

public RoleForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. 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 int Either SAVED_NEW or SAVED_UPDATED, depending on the operation pe

BookRemoveForm::$bookManager

The book manager. Type: \Drupal\book\BookManagerInterface File core/modules/book/src/Form/BookRemoveForm.php, line 21 Class BookRemoveForm Remove form for book module. Namespace Drupal\book\Form Code protected $bookManager;

FileStorage::read

public FileStorage::read($name) Implements Drupal\Core\Config\StorageInterface::read(). Throws \Drupal\Core\Config\UnsupportedDataTypeConfigException Overrides StorageInterface::read File core/lib/Drupal/Core/Config/FileStorage.php, line 102 Class FileStorage Defines the file storage. Namespace Drupal\Core\Config Code public function read($name) { if (!$this->exists($name)) { return FALSE; } $filepath = $this->getFilePath($name); if ($data = $this->fileCache->

AjaxBasePageNegotiator::$csrfGenerator

The CSRF token generator. Type: \Drupal\Core\Access\CsrfTokenGenerator File core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php, line 32 Class AjaxBasePageNegotiator Defines a theme negotiator that deals with the active theme on ajax requests. Namespace Drupal\Core\Theme Code protected $csrfGenerator;

BookAdminEditForm::create

public static BookAdminEditForm::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 servic

File::setFileUri

public File::setFileUri($uri) Sets the URI of the file. Parameters string $uri: The URI of the file, e.g. public://directory/file.jpg. Does not change the location of the file. Overrides FileInterface::setFileUri File core/modules/file/src/Entity/File.php, line 64 Class File Defines the file entity class. Namespace Drupal\file\Entity Code public function setFileUri($uri) { $this->get('uri')->value = $uri; }

ConfigTranslationDeleteForm::$mapper

The configuration translation to be deleted. Type: \Drupal\config_translation\ConfigMapperInterface File core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php, line 47 Class ConfigTranslationDeleteForm Builds a form to delete configuration translation. Namespace Drupal\config_translation\Form Code protected $mapper;

TwigExtension::getNodeVisitors

public TwigExtension::getNodeVisitors() File core/lib/Drupal/Core/Template/TwigExtension.php, line 179 Class TwigExtension A class providing Drupal Twig extensions. Namespace Drupal\Core\Template Code public function getNodeVisitors() { // The node visitor is needed to wrap all variables with // render_var -> TwigExtension->renderVar() function. return array( new TwigNodeVisitor(), ); }

FieldItemListInterface::view

public FieldItemListInterface::view($display_options = array()) Returns a renderable array for the field items. Parameters array $display_options: Can be either the name of a view mode, or an array of display settings. See EntityViewBuilderInterface::viewField() for more information. Return value array A renderable array for the field values. See also \Drupal\Core\Entity\EntityViewBuilderInterface::viewField() \Drupal\Core\Field\FieldItemInterface::view() File core/lib/Drupal/Core/Field/Fiel