ApiGen\Templating\Filters\Helpers\ElementUrlFactory::createForAnnotationGroup PHP Метод

createForAnnotationGroup() публичный метод

public createForAnnotationGroup ( string $name ) : string
$name string
Результат string
    public function createForAnnotationGroup($name)
    {
        return sprintf($this->configuration->getOption(CO::TEMPLATE)['templates'][TCO::ANNOTATION_GROUP]['filename'], Filters::urlize($name));
    }

Usage Example

Пример #1
0
 /**
  * @param string $element
  * @return string
  */
 public function getTemplatePathForAnnotationGroup($element)
 {
     return $this->getDestination() . '/' . $this->elementUrlFactory->createForAnnotationGroup($element);
 }