Caffeinated\Menus\Builder::attributes PHP Метод

attributes() публичный Метод

Converts the defined attributes into HTML.
public attributes ( array $attributes = [] ) : string
$attributes array
Результат string
    public function attributes($attributes = array())
    {
        return $this->html->attributes($attributes);
    }

Usage Example

Пример #1
0
 /**
  * Fetch the formatted attributes for the item in HTML.
  *
  * @return string
  */
 public function attributes()
 {
     return $this->builder->attributes($this->attributes);
 }