BookNavigationCacheContext

Defines the book navigation cache context service. Cache context ID: 'route.book_navigation'. This allows for book navigation location-aware caching. It depends on: whether the current route represents a book node at all and if so, where in the book hierarchy we are This class is container-aware to avoid initializing the 'book.manager' service when it is not necessary. Hierarchy class \Drupal\book\Cache\BookNavigationCacheContext implements CacheContextInterface, ContainerAwareInterface uses

ImageToolkitInterface::parseFile

public ImageToolkitInterface::parseFile() Determines if a file contains a valid image. Drupal supports GIF, JPG and PNG file formats when used with the GD toolkit, and may support others, depending on which toolkits are installed. Return value bool TRUE if the file could be found and is an image, FALSE otherwise. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 102 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageTool

PhpStreamWrapperInterface::rmdir

public PhpStreamWrapperInterface::rmdir($path, $options) Return value bool File core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php, line 45 Class PhpStreamWrapperInterface Defines a generic PHP stream wrapper interface. Namespace Drupal\Core\StreamWrapper Code public function rmdir($path, $options);

ShortcutSetDeleteForm::$storage

The shortcut storage. Type: \Drupal\shortcut\ShortcutSetStorageInterface File core/modules/shortcut/src/Form/ShortcutSetDeleteForm.php, line 28 Class ShortcutSetDeleteForm Builds the shortcut set deletion form. Namespace Drupal\shortcut\Form Code protected $storage;

MenuParentFormSelectorInterface::parentSelectElement

public MenuParentFormSelectorInterface::parentSelectElement($menu_parent, $id = '', array $menus = NULL) Gets a form element to choose a menu and parent. The specific type of form element will vary depending on the implementation, but callers will normally need to set the #title for the element. Parameters string $menu_parent: A menu name and parent ID concatenated with a ':' character to use as the default value. string $id: (optional) ID of a link plugin. This will exclude the link and its c

FormState::setButtons

public FormState::setButtons(array $buttons) Stores the submit and button elements for the form. Parameters array $buttons: The submit and button elements. Return value $this Overrides FormStateInterface::setButtons File core/lib/Drupal/Core/Form/FormState.php, line 485 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function setButtons(array $buttons) { $this->buttons = $buttons; return $this; }

Node::getRevisionLogMessage

public Node::getRevisionLogMessage() Returns the entity revision log message. Return value string The revision log message. Overrides RevisionLogInterface::getRevisionLogMessage File core/modules/node/src/Entity/Node.php, line 353 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function getRevisionLogMessage() { return $this->get('revision_log')->value; }

ContentEntityBase::isTranslatable

public ContentEntityBase::isTranslatable() Returns the translation support status. Return value bool TRUE if the object has translation support enabled. Overrides TranslatableInterface::isTranslatable File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 338 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function isTranslatable() { // Check that the bundle is translatable, the entity has

FormBase::container

private FormBase::container() Returns the service container. This method is marked private to prevent sub-classes from retrieving services from the container through it. Instead, \Drupal\Core\DependencyInjection\ContainerInjectionInterface should be used for injecting services. Return value \Symfony\Component\DependencyInjection\ContainerInterface $container The service container. File core/lib/Drupal/Core/Form/FormBase.php, line 206 Class FormBase Provides a base class for forms. Names

ItemInterface::setLink

public ItemInterface::setLink($link) Sets the link to the feed item. Parameters string $link: The link to the feed item. Return value \Drupal\aggregator\ItemInterface The called feed item entity. File core/modules/aggregator/src/ItemInterface.php, line 67 Class ItemInterface Provides an interface defining an aggregator item entity. Namespace Drupal\aggregator Code public function setLink($link);