src/Plugin.php
public static function getData($plugin, $key = null)
    {
        $data = self::_checkData($plugin);
        if (empty($data) && $path = self::getManifestPath($plugin)) {
            if (FS::isFile($path)) {
                /** @noinspection PhpIncludeInspection */
                $plgData = include $path;
                $plgData = (array) $plgData;
                if (!empty($plgData)) {
                    self::$_data[$plugin] = $plgData;
                    $data = $plgData;
                }
            }
        }

        return self::_getPluginData($data, $key);
    }
public static function getData($plugin, $key = null)
    {
        $data = self::_checkData($plugin);
        if (empty($data) && $path = self::getManifestPath($plugin)) {
            if (FS::isFile($path)) {
                /** @noinspection PhpIncludeInspection */
                $plgData = include $path;
                $plgData = (array) $plgData;
                if (!empty($plgData)) {
                    self::$_data[$plugin] = $plgData;
                    $data = $plgData;
                }
            }
        }

        return self::_getPluginData($data, $key);
    }
public static function getData ( $ plugin , $ key = null ) { $ data = self :: _checkData ( $ plugin ) ; if ( empty ( $ data ) && $ path = self :: getManifestPath ( $ plugin ) ) { if ( FS :: isFile ( $ path ) ) { /** @noinspection PhpIncludeInspection */ $ plgData = include $ path ; $ plgData = ( array ) $ plgData ; if ( ! empty ( $ plgData ) ) { self :: $ _data [ $ plugin ] = $ plgData ; $ data = $ plgData ; } } } return self :: _getPluginData ( $ data , $ key ) ; }
Get plugin manifest data.

@param string $plugin
@param null|string $key
@return Data
Get plugin manifest data .