Caffeinated\Menus\Builder::attributes PHP Method

attributes() public method

Converts the defined attributes into HTML.
public attributes ( array $attributes = [] ) : string
$attributes array
return string
    public function attributes($attributes = array())
    {
        return $this->html->attributes($attributes);
    }

Usage Example

示例#1
0
文件: Item.php 项目: tok3/menus
 /**
  * Fetch the formatted attributes for the item in HTML.
  *
  * @return string
  */
 public function attributes()
 {
     return $this->builder->attributes($this->attributes);
 }