EntityController::addPage

public EntityController::addPage($entity_type_id) Displays add links for the available bundles. Redirects to the add form if there's only one bundle available. Parameters string $entity_type_id: The entity type ID. Return value \Symfony\Component\HttpFoundation\RedirectResponse|array If there's only one available bundle, a redirect response. Otherwise, a render array with the add links for each bundle. File core/lib/Drupal/Core/Entity/Controller/EntityController.php, line 115 Class Entity

responsive_image_help

responsive_image_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/responsive_image/responsive_image.module, line 26 Responsive image display formatter for image fields. Code function responsive_image_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.responsive_image': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Responsive Image

CommentTypeDeleteForm::__construct

public CommentTypeDeleteForm::__construct(QueryFactory $query_factory, CommentManagerInterface $comment_manager, EntityManager $entity_manager, LoggerInterface $logger) Constructs a query factory object. Parameters \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query object. \Drupal\comment\CommentManagerInterface $comment_manager: The comment manager service. \Drupal\Core\Entity\EntityManager $entity_manager: The entity manager service. \Psr\Log\LoggerInterface $logger: A l

MenuLinkContentDeleteForm

Provides a delete form for content menu links. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmFormBase implements

book_node_predelete

book_node_predelete(EntityInterface $node) Implements hook_ENTITY_TYPE_predelete() for node entities. File core/modules/book/book.module, line 280 Allows users to create and organize related content in an outline. Code function book_node_predelete(EntityInterface $node) { if (!empty($node->book['bid'])) { /** @var \Drupal\book\BookManagerInterface $book_manager */ $book_manager = \Drupal::service('book.manager'); $book_manager->deleteFromBook($node->book['nid']); } }

Mail::$id

The plugin ID. Type: string File core/lib/Drupal/Core/Annotation/Mail.php, line 27 Class Mail Defines a Mail annotation object. Namespace Drupal\Core\Annotation Code public $id;

update.module

Handles updates of Drupal core and contributed projects. The module checks for available updates of Drupal core and any installed contributed modules and themes. It warns site administrators if newer releases are available via the system status report (admin/reports/status), the module and theme pages, and optionally via email. It also provides the ability to install contributed modules and themes via an user interface. File core/modules/update/update.module Functions Name Description t

NodeViewController::__construct

public NodeViewController::__construct(EntityManagerInterface $entity_manager, RendererInterface $renderer, AccountInterface $current_user = NULL) Creates an NodeViewController object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Render\RendererInterface $renderer: The renderer service. \Drupal\Core\Session\AccountInterface $current_user: The current user. For backwards compatibility this is optional, however this will be removed befor

PathProcessorLanguage::processOutbound

public PathProcessorLanguage::processOutbound($path, &$options = array(), Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) Processes the outbound path. Parameters string $path: The path to process, with a leading slash. array $options: (optional) An associative array of additional options, with the following elements: 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. 'fragment': A fragment identifier (named anchor) to appe

EntityRevisionParamConverter::applies

public EntityRevisionParamConverter::applies($definition, $name, Route $route) Determines if the converter applies to a specific route and variable. Parameters mixed $definition: The parameter definition provided in the route options. string $name: The name of the parameter. \Symfony\Component\Routing\Route $route: The route to consider attaching to. Return value bool TRUE if the converter applies to the passed route and parameter, FALSE otherwise. Overrides ParamConverterInterface::applies F