Skip to content

Commit

Permalink
Rename and namespace pluginelement field
Browse files Browse the repository at this point in the history
  • Loading branch information
chmst committed Apr 14, 2019
1 parent 3dde759 commit 97b9797
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@
* @package Joomla.Administrator
* @subpackage com_plugins
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;
namespace Joomla\Component\Plugins\Administrator\Field;

JLoader::register('PluginsHelper', JPATH_ADMINISTRATOR . '/components/com_plugins/helpers/plugins.php');
defined('_JEXEC') or die;

JFormHelper::loadFieldClass('list');
use Joomla\CMS\Form\Field\ListField;
use Joomla\Component\Plugins\Administrator\Helper\PluginsHelper;

/**
* Plugin Element field.
*
* @since 3.9.0
*/
class JFormFieldPluginElement extends JFormFieldList
class PluginElementField extends ListField
{
/**
* The form field type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@

<field
name="element"
type="pluginelement"
type="PluginElement"
label="COM_PLUGINS_OPTION_ELEMENT"
onchange="this.form.submit();"
>
<option value="">COM_PLUGINS_OPTION_ELEMENT</option>
Expand Down

0 comments on commit 97b9797

Please sign in to comment.