ShowBuilderInterface.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\AdminBundle\Builder;
  11. use Sonata\AdminBundle\Admin\AdminInterface;
  12. use Sonata\AdminBundle\Admin\FieldDescriptionCollection;
  13. use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
  14. /**
  15. * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
  16. */
  17. interface ShowBuilderInterface extends BuilderInterface
  18. {
  19. /**
  20. * @abstract
  21. *
  22. * @param array $options
  23. */
  24. public function getBaseList(array $options = array());
  25. /**
  26. * @abstract
  27. *
  28. * @param FieldDescriptionCollection $list
  29. * @param string|null $type
  30. * @param FieldDescriptionInterface $fieldDescription
  31. * @param AdminInterface $admin
  32. */
  33. public function addField(FieldDescriptionCollection $list, $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
  34. }