![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/aheadworks/module-csblock/Model/Source/ |
<?php namespace Aheadworks\Csblock\Model\Source; use Magento\Framework\Data\OptionSourceInterface; /** * Product status functionality model */ class Status implements OptionSourceInterface { /**#@+ * Product Status values */ const STATUS_ENABLED = 1; const STATUS_DISABLED = 0; /** * Retrieve option array * * @return string[] * phpcs:disable Magento2.Functions.StaticFunction.StaticFunction */ public static function getOptionArray() { return [self::STATUS_ENABLED => __('Enable'), self::STATUS_DISABLED => __('Disable')]; } public function toOptionArray() { return [ ['value' => self::STATUS_ENABLED, 'label' => __('Enabled')], ['value' => self::STATUS_DISABLED, 'label' => __('Disabled')], ]; } public function toOptionArrayForMassStatus() { return [ ['value' => self::STATUS_ENABLED, 'label' => __('Enable')], ['value' => self::STATUS_DISABLED, 'label' => __('Disable')], ]; } }