public function AggregatorController::feedAdd in Drupal 8
Same name and namespace in other branches
- 9 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\ControllerCode
public function feedAdd() {
$feed = $this
->entityTypeManager()
->getStorage('aggregator_feed')
->create();
return $this
->entityFormBuilder()
->getForm($feed);
}