Ejemplo n.º 1
0
 /**
  * Formats the name of the resource.
  *
  * Resources with children are colored.
  *
  * @param Resource $resource The resource.
  *
  * @return string The formatted name.
  */
 private function formatName(Resource $resource)
 {
     $name = $resource->getName();
     if ($resource->hasChildren()) {
         return '<c1>' . $name . '</c1>';
     }
     return $name;
 }