You are here

public function AggregatorController::feedAdd in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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_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 54
Contains \Drupal\aggregator\Controller\AggregatorController.

Class

AggregatorController
Returns responses for aggregator module routes.

Namespace

Drupal\aggregator\Controller

Code

public function feedAdd() {
  $feed = $this
    ->entityManager()
    ->getStorage('aggregator_feed')
    ->create(array(
    'refresh' => 3600,
  ));
  return $this
    ->entityFormBuilder()
    ->getForm($feed);
}