ShowBuilderInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. * Interface ShowBuilderInterface.
  16. *
  17. * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
  18. */
  19. interface ShowBuilderInterface extends BuilderInterface
  20. {
  21. /**
  22. * @abstract
  23. *
  24. * @param array $options
  25. */
  26. public function getBaseList(array $options = array());
  27. /**
  28. * @abstract
  29. *
  30. * @param FieldDescriptionCollection $list
  31. * @param string|null $type
  32. * @param FieldDescriptionInterface $fieldDescription
  33. * @param AdminInterface $admin
  34. */
  35. public function addField(FieldDescriptionCollection $list, $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
  36. }