function AggregatorController::feedAdd

Same name in other branches
  1. 8.9.x core/modules/aggregator/src/Controller/AggregatorController.php \Drupal\aggregator\Controller\AggregatorController::feedAdd()

Presents the aggregator feed creation form.

Return value

array A form array as expected by \Drupal\Core\Render\RendererInterface::render().

1 string reference to 'AggregatorController::feedAdd'
aggregator.routing.yml in core/modules/aggregator/aggregator.routing.yml
core/modules/aggregator/aggregator.routing.yml

File

core/modules/aggregator/src/Controller/AggregatorController.php, line 50

Class

AggregatorController
Returns responses for aggregator module routes.

Namespace

Drupal\aggregator\Controller

Code

public function feedAdd() {
    $feed = $this->entityTypeManager()
        ->getStorage('aggregator_feed')
        ->create();
    return $this->entityFormBuilder()
        ->getForm($feed);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.