BuilderInterface.php 948 B

12345678910111213141516171819202122232425262728293031
  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\FieldDescriptionInterface;
  13. /**
  14. * Interface BuilderInterface.
  15. *
  16. * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
  17. */
  18. interface BuilderInterface
  19. {
  20. /**
  21. * Adds missing information to the given field description from the model manager metadata, and the given admin.
  22. *
  23. * @param AdminInterface $admin will be used to gather information
  24. * @param FieldDescriptionInterface $fieldDescription will be modified
  25. */
  26. public function fixFieldDescription(AdminInterface $admin, FieldDescriptionInterface $fieldDescription);
  27. }