AggregatorController::feedAdd

public AggregatorController::feedAdd()

Presents the aggregator feed creation form.

Return value

array A form array as expected by drupal_render().

File

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

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);
}
doc_Drupal
2016-10-29 08:43:52
Comments
Leave a Comment

Please login to continue.