ExportForm::create

public static ExportForm::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 service conta

views_preprocess_comment

views_preprocess_comment(&$variables) A theme preprocess function to automatically allow view-based node templates if called from a view. File core/modules/views/views.module, line 265 Primarily Drupal hooks and global API functions to manipulate views. Code function views_preprocess_comment(&$variables) { // The view data is added to the comment in // \Drupal\views\Plugin\views\row\EntityRow::preRender(). if (!empty($variables['comment']->view) && $variables['comment

Bytes

Provides helper methods for byte conversions. Hierarchy class \Drupal\Component\Utility\Bytes File core/lib/Drupal/Component/Utility/Bytes.php, line 8 Namespace Drupal\Component\Utility Members Name Modifiers Type Description Bytes::KILOBYTE constant The number of bytes in a kilobyte. Bytes::toInt public static function Parses a given byte size.

ImageFactory::getToolkitId

public ImageFactory::getToolkitId() Gets the ID of the image toolkit currently in use. Return value string The ID of the image toolkit in use by the image factory. File core/lib/Drupal/Core/Image/ImageFactory.php, line 56 Class ImageFactory Provides a factory for image objects. Namespace Drupal\Core\Image Code public function getToolkitId() { return $this->toolkitId; }

AjaxRenderer::drupalRenderRoot

protected AjaxRenderer::drupalRenderRoot(&$elements) Wraps drupal_render_root(). @todo Remove as part of https://www.drupal.org/node/2182149. File core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php, line 82 Class AjaxRenderer Default main content renderer for Ajax requests. Namespace Drupal\Core\Render\MainContent Code protected function drupalRenderRoot(&$elements) { return drupal_render_root($elements); }

Connection::$prefixes

The prefixes used by this database connection. Type: array File core/lib/Drupal/Core/Database/Connection.php, line 120 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $prefixes = array();

UrlGeneratorTrait::$urlGenerator

The url generator. Type: \Drupal\Core\Routing\UrlGeneratorInterface File core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php, line 25 Class UrlGeneratorTrait Wrapper methods for the Url Generator. Namespace Drupal\Core\Routing Code protected $urlGenerator;

Message::setCopySender

public Message::setCopySender($inform) Sets if the sender should receive a copy of this email or not. Parameters bool $inform: TRUE if a copy should be sent, FALSE if not. Overrides MessageInterface::setCopySender File core/modules/contact/src/Entity/Message.php, line 116 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function setCopySender($inform) { $this->set('copy', (bool) $inform); }

NodeGrantDatabaseStorageInterface::write

public NodeGrantDatabaseStorageInterface::write(NodeInterface $node, array $grants, $realm = NULL, $delete = TRUE) Writes a list of grants to the database, deleting previously saved ones. If a realm is provided, it will only delete grants from that realm, but it will always delete a grant from the 'all' realm. Modules that use node access can use this method when doing mass updates due to widespread permission changes. Note: Don't call this method directly from a contributed module. Call \Drupa

hook_block_build_alter

hook_block_build_alter(array &$build, \Drupal\Core\Block\BlockPluginInterface $block) Alter the result of \Drupal\Core\Block\BlockBase::build(). Unlike hook_block_view_alter(), this hook is called very early, before the block is being assembled. Therefore, it is early enough to alter the cacheability metadata (change #cache), or to explicitly placeholder the block (set #create_placeholder). In addition to hook_block_build_alter(), which is called for all blocks, there is hook_block_build_BA