You are here

class FeedHtmlRouteProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/FeedHtmlRouteProvider.php \Drupal\aggregator\FeedHtmlRouteProvider

Provides HTML routes for the feed entity type.

Hierarchy

Expanded class hierarchy of FeedHtmlRouteProvider

File

core/modules/aggregator/src/FeedHtmlRouteProvider.php, line 16
Contains \Drupal\aggregator\FeedHtmlRouteProvider.

Namespace

Drupal\aggregator
View source
class FeedHtmlRouteProvider extends AdminHtmlRouteProvider {

  /**
   * {@inheritdoc}
   */
  protected function getCanonicalRoute(EntityTypeInterface $entity_type) {
    $route = parent::getCanonicalRoute($entity_type);
    $route
      ->setDefault('_title_controller', '\\Drupal\\aggregator\\Controller\\AggregatorController::feedTitle');
    return $route;
  }

  /**
   * {@inheritdoc}
   */
  protected function getEditFormRoute(EntityTypeInterface $entity_type) {
    $route = parent::getEditFormRoute($entity_type);
    $route
      ->setDefault('_title', 'Configure');
    return $route;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AdminHtmlRouteProvider::getDeleteFormRoute protected function Gets the delete-form route. Overrides DefaultHtmlRouteProvider::getDeleteFormRoute
DefaultHtmlRouteProvider::$entityManager protected property The entity manager.
DefaultHtmlRouteProvider::createInstance public static function Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface::createInstance
DefaultHtmlRouteProvider::getEntityTypeIdKeyType protected function Gets the type of the ID key for a given entity type. 1
DefaultHtmlRouteProvider::getRoutes public function Provides routes for entities. Overrides EntityRouteProviderInterface::getRoutes
DefaultHtmlRouteProvider::__construct public function Constructs a new DefaultHtmlRouteProvider.
FeedHtmlRouteProvider::getCanonicalRoute protected function Gets the canonical route. Overrides DefaultHtmlRouteProvider::getCanonicalRoute
FeedHtmlRouteProvider::getEditFormRoute protected function Gets the edit-form route. Overrides AdminHtmlRouteProvider::getEditFormRoute