menu.inc

API for the Drupal menu system. File core/includes/menu.inc Functions Name Description menu_cache_clear_all Clears all cached menu data. menu_list_system_menus Returns an array containing the names of system-defined (default) menus. menu_local_tabs Returns a renderable element for the primary and secondary tabs. menu_local_tasks Deprecated Collects the local tasks (tabs) for the current route. menu_primary_local_tasks Deprecated Returns the rendered local tasks at the

ConstraintViolationBuilder::addViolation

public ConstraintViolationBuilder::addViolation() Adds the violation to the current execution context. Overrides ConstraintViolationBuilderInterface::addViolation File core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 216 Class ConstraintViolationBuilder Defines a constraint violation builder for the Typed Data validator. Namespace Drupal\Core\TypedData\Validation Code public function addViolation() { if (null === $this->plural) { $translatedMess

ForumController::$termStorage

Term storage. Type: \Drupal\taxonomy\TermStorageInterface File core/modules/forum/src/Controller/ForumController.php, line 43 Class ForumController Controller routines for forum routes. Namespace Drupal\forum\Controller Code protected $termStorage;

Comment::setPublished

public Comment::setPublished($status) Sets the published status of the comment entity. Parameters bool $status: Set to TRUE to publish the comment, FALSE to unpublish. Return value \Drupal\comment\CommentInterface The class instance that this method is called on. Overrides CommentInterface::setPublished File core/modules/comment/src/Entity/Comment.php, line 487 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function setPublished($status) {

Item::setPostedTime

public Item::setPostedTime($timestamp) Sets the posted date of the feed item, as a Unix timestamp. Parameters int $timestamp: The posted date of the feed item, as a Unix timestamp. Return value \Drupal\aggregator\ItemInterface The called feed item entity. Overrides ItemInterface::setPostedTime File core/modules/aggregator/src/Entity/Item.php, line 195 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function setPostedTime($timestamp)

DateFormatter::formatTimeDiffSince

public DateFormatter::formatTimeDiffSince($timestamp, $options = array()) Formats the time difference from a timestamp to the current request time. Parameters $timestamp: A UNIX timestamp to compare against the current request time. array $options: (optional) An associative array with additional options. The following keys can be used: granularity: An integer value that signals how many different units to display in the string. Defaults to 2. langcode: The language code for the language used

AccessManager::performCheck

protected AccessManager::performCheck($service_id, ArgumentsResolverInterface $arguments_resolver) Performs the specified access check. Parameters string $service_id: The access check service ID to use. \Drupal\Component\Utility\ArgumentsResolverInterface $arguments_resolver: The parametrized arguments resolver instance. Return value \Drupal\Core\Access\AccessResultInterface The access result. Throws \Drupal\Core\Access\AccessException Thrown when the access check returns an invalid value. F

FormState::isRebuilding

public FormState::isRebuilding() Determines if the form should be rebuilt after processing. Return value bool TRUE if the form should be rebuilt, FALSE otherwise. Overrides FormStateInterface::isRebuilding File core/lib/Drupal/Core/Form/FormState.php, line 1140 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function isRebuilding() { return $this->rebuild; }

UserAuthenticationController::loginStatus

public UserAuthenticationController::loginStatus() Checks whether a user is logged in or not. Return value \Symfony\Component\HttpFoundation\Response The response. File core/modules/user/src/Controller/UserAuthenticationController.php, line 257 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code public function loginStatus() { if ($this->currentUser()->isAuthenticated()) { $resp

Node::getOwner

public Node::getOwner() Returns the entity owner's user entity. Return value \Drupal\user\UserInterface The owner user entity. Overrides EntityOwnerInterface::getOwner File core/modules/node/src/Entity/Node.php, line 263 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function getOwner() { return $this->get('uid')->entity; }