|
@@ -68,7 +68,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
private $show;
|
|
|
|
|
|
/**
|
|
|
- * The show FieldDescription constructed from the configureShowField method
|
|
|
+ * The show FieldDescription constructed from the configureShowFields method
|
|
|
*
|
|
|
* @var array
|
|
|
*/
|
|
@@ -395,6 +395,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * @deprecated Use configureShowFields instead.
|
|
|
* @param \Sonata\AdminBundle\Show\ShowMapper $filter
|
|
|
* @return void
|
|
|
*/
|
|
@@ -403,6 +404,15 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param \Sonata\AdminBundle\Show\ShowMapper $filter
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ protected function configureShowFields(ShowMapper $filter)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* configure the Admin routes
|
|
|
*
|
|
@@ -550,7 +560,8 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
$collection = new FieldDescriptionCollection();
|
|
|
$mapper = new ShowMapper($this->showBuilder, $collection, $this);
|
|
|
|
|
|
- $this->configureShowField($mapper);
|
|
|
+ $this->configureShowField($mapper); // deprecated, use configureShowFields instead
|
|
|
+ $this->configureShowFields($mapper);
|
|
|
|
|
|
$this->show = $collection;
|
|
|
}
|